#ifndef __STH20_H__
#define __STH20_H__
#define ACK 0
#define NOACK 1
#include<stm32f4xx.h>
#include<stdio.h>
#include "drv_IIC.h"
#include "drv_systick.h"
uint16_t drv_sth20_read_rh();
typedef struct  
{
	uint8_t tem_h;
	uint8_t tem_l;
	uint8_t rh_h;
	uint8_t rh_l;
	float tem;
	float rh;

}sth20_value;
void drv_sth20_init();
uint16_t drv_sth20_read();
float drv_sth20_getdate_hm(void);
float drv_sth20_getdate_tem(void);
#endif
//#ifndef __STH20_H__
//#define __STH20_H__
//#include <stm32f4xx.h>
//#include "drv_systick.h"
//#include "drv_IIC.h"
//#define ACK 0
//#define NOACK 1
//typedef struct{
//    uint8_t temp_h;
//    uint8_t temp_l;
//    uint8_t hum_h;
//    uint8_t hum_l;

//    float tem;
//    float hum;        
//}sht20_val;
//void Init_sht20(void);

//uint16_t sht20_temdata(void);
//uint16_t sht20_humdata(void);


//void sht20_getdata(void);






//#endif